package com.wlz.principle.lsp;

import java.util.Collection;
import java.util.Map;

public class Son extends Father{
    public void setRole() {
        this.role = "儿子";
    }
    /**
     * 缩小输入参数范围
     * @param map
     * @return
     */
    public Collection doSomething(Map map){
        System.out.println("子类被执行...");
        return map.values();
    }
}
